<?php
/**
 * Created by PhpStorm.
 * User: 杜磊磊
 * Date: 2020/5/30
 * Time: 14:51
 */
namespace app\model;

use think\Model;

class Tables extends Model
{
    public function getStatusTextAttr($value,$data)
    {
        $status = [0=>'删除',3=>'禁用',1=>'正常',2=>'待审核'];
        return $status[$data['status']];
    }
}